import {App} from 'vue'
import components from './components'
import {
  getWmWhSimpleList
} from '@njt/wms/helper/dropdownlist'

export default (app: App) => {
  app.use(components)

  //看看apiUrl有没有配置，如果没有，用它来设置axios的baseUrl
  const apiUrl = localStorage.getItem('apiUrl')
  if(apiUrl){
    $f.axios.defaults.baseURL = apiUrl
  }

  // 获取仓库
  $f.lst.getWmWhSimpleList = getWmWhSimpleList
}
